package com.csxh.hibernate.listener;

import org.hibernate.HibernateException;
import org.hibernate.event.spi.SaveOrUpdateEvent;
import org.hibernate.event.spi.SaveOrUpdateEventListener;

public class SaveOrUpdateListener implements SaveOrUpdateEventListener {

	@Override
	public void onSaveOrUpdate(SaveOrUpdateEvent e) throws HibernateException {
		
		System.out.println(e.getEntity());
		System.out.println(e.getEntityName());
		System.out.println(e.getClass());

	}

}
